package com.swiftride.autoconfigure;

import com.swiftride.properties.GtPushProperties;
import com.swiftride.template.GtPushTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({GtPushProperties.class})
public class MessageAutoConfiguration {

    @Bean
    public GtPushTemplate gtPushTemplate(GtPushProperties gtPushProperties) {
        GtPushTemplate gtPushTemplate = new GtPushTemplate(gtPushProperties);
        return gtPushTemplate;
    }
}
